﻿using System;

namespace RecaptchaMvc {
	public class RecaptchaRequest : IRecaptchaRequest {
		public RecaptchaRequest(string privateKey, string remoteIP) : this(privateKey, remoteIP, null, null) {}
		public RecaptchaRequest(string privateKey, string remoteIP, string challenge, string response) {
			if(string.IsNullOrEmpty(privateKey))
				throw new ArgumentNullException("privateKey");
			if(string.IsNullOrEmpty(remoteIP))
				throw new ArgumentNullException("remoteIP");
			this.PrivateKey = privateKey;
			this.RemoteIP = remoteIP;
			this.Challenge = challenge;
			this.Response = response;
		}

		public string Challenge { get; set; }
		public string PrivateKey { get; private set; }
		public string RemoteIP { get; private set; }
		public string Response { get; set; }
	}
}